<?php

namespace App\Model\Home;

use Illuminate\Database\Eloquent\Model;
use Gregwar\Captcha\CaptchaBuilder;
use Session;
use Auth;
use DB;
use View;

class  Globel_ver extends Model{

	public static function ver()
	{
		$data = DB::table('cat')->where('pid',0)->get();
        $data1 = DB::table('cat')->get();
        View::share('cat',$data);
        View::share('cat1',$data1);

	}

}